package chapter06

/**
 *
 * @author cdhuangchao3
 * @date 2023/6/9 5:35 PM
 */
object Test_Class4Access {

}

// 定义一个父类
class Person {
  private var idCard = "3523234"
  protected var name = "zs"
  var sex: String = "female"
  private[chapter06] var age = 18

  def printInfo(): Unit = {
    println(s"Person: ${idCard} $name $sex $age")
  }
}